package com.chinda.modules.qo;

import com.chinda.common.page.BaseQO;
import com.chinda.modules.entity.QGeneratorEntity;
import com.querydsl.core.BooleanBuilder;
import com.querydsl.core.types.Predicate;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 自动生成测试类
 * @author chinda
 * @date 2020-08-09 19:53:49
 */
@Getter
@Setter
public class GeneratorQO extends BaseQO {

    /**
     * 主键，自动生成
     */
    private Long id;
    /**
     * 自动生成测试类创建时间
     */
    private Date createDate;
    /**
     * 自动生成测试类名称
     */
    private String name;

    @Override
    public Predicate getPredicate() {
        BooleanBuilder where = new BooleanBuilder();
        QGeneratorEntity generator = QGeneratorEntity.generatorEntity;

        Long id = this.getId();
        Date createDate = this.getCreateDate();
        String name = this.getName();

        // FIXED: 需完善此方法
        return where;
    }
}
